package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class CompanyRunningWater {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;//id
    private String pipelineId;//流水编号
    private Integer accountId;//付钱用户id  发钱者
    private Integer uid;//收钱用户id  收钱者
    private String oid;//帐单id   产生的账单id
    private Double rmoney;//流水金额
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date rdate;//流水日期
    private Integer rtype;//流水类型	1. 订单付款 2. 订单退款 3. 结算商户月营收 4. 采购商品
    private Integer isDelete;//是否删除

    //开始时间
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;
    //结束时间
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;

    //发钱用户
    @TableField(exist = false)
    private Users accountIdUsers;
    //收钱用户
    @TableField(exist = false)
    private Users uidUsers;

    @TableField(exist = false)
    //供应商本月的收入
    private Double grossRevenue;
}
